// 用于定义医院设置页面所有的请求函数
import { request } from '@utils/http'

// 引入ts类型
import { IhospitalSetRes } from './model/hospitalSetTypes'
// 获取医院设置表格数据
export function reqGetHospitalSet(
  page: number,
  limit: number,
  hosname?: string,
  hoscode?: string
) {
  return request.get<any, IhospitalSetRes>(
    `/admin/hosp/hospitalSet/${page}/${limit}`,
    {
      params: {
        hosname,
        hoscode,
      },
    }
  )
}
